package config

type Config struct {
	Env string `mapstructure:"env" default:"development"` // 环境：development, production, test

	Log struct {
		Path string `mapstructure:"path" default:"."`
	} `mapstructure:"log"`

	Interface struct {
		Name    string `json:"name" default:"tun0"`
		Ip4     string `json:"ip4" default:""`
		Mac     string `json:"mac" default:""`
		Gateway string `json:"gateway" default:""`
	} `mapstructure:"interface"`

	Database struct {
		Type string `mapstructure:"type" default:"sqlite"`
		Dsn  string `mapstructure:"dsn" default:"./slapp.db"`
	} `mapstructure:"database"`
}
